﻿using Basic.FlowRemoteModel;
using SqlSugar;

namespace Basic.FlowModel.DB
{
    [SugarTable("FlowAuditLog")]
    public class DBFlowAuditLog
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id
        {
            get;
            set;
        }
        /// <summary>
        /// 公司ID
        /// </summary>
        public long CompanyId
        {
            get;
            set;
        }
        /// <summary>
        /// 流程ID
        /// </summary>
        public long FlowId
        {
            get;
            set;
        }
        /// <summary>
        /// 应用ID
        /// </summary>
        public long AppId { get; set; }

        /// <summary>
        /// 应用类型
        /// </summary>
        public FlowAppType AppType { get; set; }

        /// <summary>
        /// 关联业务ID
        /// </summary>
        public long LinkPk { get; set; }

        /// <summary>
        /// 管理业务类型
        /// </summary>
        public string LinkType { get; set; }

        /// <summary>
        /// 文档标题
        /// </summary>
        public string DocTitle { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public FlowAuditStatus AuditStatus { get; set; }

        /// <summary>
        /// 流程状态
        /// </summary>
        public FlowAuditLogStatus Status { get; set; }

        /// <summary>
        /// 进度值
        /// </summary>
        public short ProgressVal { get; set; }
        /// <summary>
        /// 结束流程的人
        /// </summary>
        public long? EndEmpId { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// 开始审批项ID
        /// </summary>
        public long BeginItemId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public long CreateBy { get; set; }

        /// <summary>
        /// 创建人所在单位ID
        /// </summary>
        public long CreateByUnitId { get; set; }

        /// <summary>
        /// 创建人说在部门ID
        /// </summary>
        public long CreateByDeptId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
